﻿@model Exam.Models.Teacher
@{
    ViewBag.Title = "老师登录";
}

<h2>老师登录</h2>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div class="=form-horizontal">
        <hr />@Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <div class="form-group">
            @Html.LabelFor(m => m.TeacherLoginName, htmlAttributes: new { @class = "control-lable col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(m => m.TeacherLoginName, new { htmlAttributes = new { @class = "form-control" } })@Html.ValidationMessageFor(m => m.TeacherLoginName, "", new { @class = "text-danger" })
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(m => m.TeacherLoginPwd, htmlAttributes: new { @class = "control-lable col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(m => m.TeacherLoginPwd, new { htmlAttributes = new { @class = "form-control" } })@Html.ValidationMessageFor(m => m.TeacherLoginPwd, "", new { @class = "text-danger" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="登录" class="btn btn-default" />
            </div>
        </div>
    </div>
}